<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的日志</title>
<link href="/theme/default/css.css" type="text/css" rel="stylesheet"/>
<!-- 载入Jquery框架 -->
<script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>
<!-- 载入Jquery消息提示框架 -->
<script src="/js/lhgdialog/lhgdialog.min.js" type="text/javascript"></script>
<script type="text/javascript">
function deleteRs(obj) {
	var del_id = $(obj).attr("id").replace('del-', '');
	$.getJSON("{#spUrl c=main a=delete}", { 'tid': del_id }, function(json){
		if (json.status == false) {
			$.dialog.tips(json.message); 
		} else {
			$("#list-" + del_id).hide();
			$.dialog.tips(json.message); 
		}
	});
}
</script>
</head>

<body>
{#include file='header.html'}
<div class="main">
    <div id="list">
        <ul class="list">
            <li class="list-cate bgray">分类</li>
            <li class="list-title bgray">标题</li>
            <li class="list-date bgray">发布日期</li>
            <li class="list-operation bgray font14">操作</li>
        </ul>
        {#section name=n loop=$results}
        <ul class="list" id="list-{#$results[n].tid}">
            <li class="list-cate"><a href="{#spUrl c=main a=index cateid=$results[n].cate.cateid}">{#$results[n].cate.catename}</a></li>
            <li class="list-title"><b></b><a href="{#spUrl c=main a=view tid=$results[n].tid}" target="_blank">{#$results[n].title}</a></li>
            <li class="list-date">{#$results[n].pubtime}</li>
            <li class="list-operation"><a href="{#spUrl c=main a=edit tid=$results[n].tid}">编辑</a> <a href="javascript:;" id="{#$results[n].tid}" onclick="deleteRs(this)">删除</a></li>
        </ul>
        {#sectionelse}
            <div class="no-data">暂无数据</div>
        {#/section}
        {#pager pager=$pager myclass="manu" c="main" a="index"}
    </div>
    <div class="sider">
    	<div class="user-face">
        	<h2><img src="/theme/default/face-75x75.jpg" /></h2>
            <ul>
            	<li><strong>江边望海</strong></li>
                <li>级别：店小二</li>
                <li>积分：400分</li>
            </ul>
        </div>
        <div class="user-tool">
        	<a href="#" class="user-tool-fav">收藏</a>
            <a href="#" class="user-tool-comment">评论</a>
            <a href="#" class="user-tool-share">分享</a>
            <a href="#" class="user-tool-down">下载</a>
        </div>
        <div class="user-firend">
        	<img src="/theme/default/face-1-75x75.jpg" />
            <img src="/theme/default/face-2-75x75.jpg" />
            <img src="/theme/default/face-3-75x75.jpg" />
            <img src="/theme/default/face-4-75x75.jpg" />
            <img src="/theme/default/face-5-75x75.jpg" />
            <img src="/theme/default/face-6-75x75.jpg" />
        </div>
    </div>
</div>
</body>
</html>
